<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* background-iamge:url(相对路径) */
        div {
            width: 100%;
            height: 600px;
            background-image: url(./images/1.jpg);
            /* 设置背景不平铺 */
            background-repeat: no-repeat;
            /*背景沿着x轴平铺 */
            background-repeat: repeat-x;
            /* 背景沿着y轴平铺 */
            background-repeat: repeat-y;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>